package com.meizhuang.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import lombok.Data;

@Data
public class CircleInfo {

    private Long id;

    private Long uId;

    private String text;
    /**
     * 图片URL，中间以|分割  最多9张
     */
    private String imagesUrl;

    private UserInfo userInfo;
    /**
     *
     */
    private Boolean vip;
    /**
     * 文件
     */
    private String fileUrl;

    public CircleInfo(Circle circle) {
        this.id = circle.getId();
        this.uId = circle.getUId();
        this.text = circle.getText();
        this.imagesUrl = circle.getImagesUrl();
        this.userInfo = new UserInfo();
        vip = false;
        fileUrl = circle.getFileUrl();
    }
}
